{"componentChunkName":"component---src-templates-blog-template-js","path":"/lessons/ram-random-access-memory-and-rom-read-only-memory","result":{"data":{"lesson":{"content":"\nThe difference between RAM (Random Access Memory) and ROM (Read Only Memory) is explained here in detail.\n\n**Random Access Memory (RAM)**\n\n RAM is a form of computer memory that can be read and changed in any order, typically used to store working data and machine code.\nRAM is volatile memory that temporarily stores the files you are working on.\n\n**What are the types of RAM (Random Access Memory) ?**\n1. Static RAM (SRAM)\n2. Dynamic RAM (DRAM).\n\n**Read Only Memory (ROM)**\n\nROM is a type of non-volatile memory used in computers and other electronic devices. ROM is non-volatile memory that permanently stores instructions for your computer.\n The difference between RAM vs ROM will help in understanding the basics better and know their comparisons thoroughly.\n\n**What are the types of ROM (Read Only Memory) ?**\n1.  PROM (Programmable read-only memory)\n2. EPROM (Erasable Programmable read only memory)\n3. EEPROM (Electrically erasable programmable read only memory)\n4. ROM\n\n![ram.PNG](https://res.cloudinary.com/hfffgjhffgkjnkjfg/image/upload/v1635061865/ram_7a06ca9912.png)\n\n#### Difference between RAM and ROM\n\n1. Definition of RAM is Random Access Memory while  Definition of ROM is Read-only Memory\n2. Random Access Memory (RAM) is expensive when compared to ROM  while ROM is cheaper when compared to RAM.\n3. The speed of Random Access Memory (RAM) is higher when compared to ROM while The speed of Read-only Memory (ROM) is slower when compared to RAM.\n4. Random Access Memory (RAM) has a higher capacity when compared to ROM while ROM has a lower capacity compared to RAM.\n5. Data in RAM can be modified, erased, or read while Data in ROM can only be read, it cannot be modified or erased.\n6. The data stored in RAM is used by the Central Processing Unit (CPU) to process current instructions\twhile The data stored in ROM is used to bootstrap the computer.\n7. Data stored on RAM can be accessed by the Central Processing Unit while If the Central Processing Unit (CPU) needs to access the data on ROM, first the data must be transferred to RAM, and then the Central Processing Unit (CPU) will be able to access the data.\n8. Data of RAM is very volatile, it will exist as long as there is no interruption in power while  Data present in Read-Only Memory (ROM) is not volatile, it is permanent. Data will remain unchanged even when there is a disruption in the power supply.\n\nThese are the main differences between RAM and ROM.\n\n**The Picture below shows the hardware view of a RAM and ROM**\n\n![RAM-Vs-ROM.jpg](https://res.cloudinary.com/hfffgjhffgkjnkjfg/image/upload/v1635062291/RAM_Vs_ROM_4d344be6f5.jpg)\n\n\n\n\n\n\n"}},"pageContext":{"slug":"ram-random-access-memory-and-rom-read-only-memory"}},"staticQueryHashes":[]}